package IOperation;

import book.Book;
import book.BookList;

public class ShowOperation implements Operation{
    public void work(BookList bookList){
        System.out.println("显示图书");

        //System.out.println(bookList.getBooks());
        int currentsize = bookList.getUsedSize();
        for (int i = 0; i < currentsize; i++) {
            Book book = bookList.getBooks()[i];
            //Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
